package com.zzq.account.entities.dto;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zzq
 * @date 2020/4/10 8:56 下午
 */
@Data
@EqualsAndHashCode
public class AccountDTO {
    @NotNull(message = "账户id不能为空")
    private Long id;
    @NotBlank(message = "账户code不能为空")
    private String accountCode;
    @NotBlank(message = "账户名不能为空")
    private String accountName;
    @NotNull(message = "账户金额不能为空")
    private Double amount;
}
